package vaccine.appointment.system.user.errorcode;

import vaccine.appointment.system.common.errorcode.ErrorCode;

/**
 * User模块的错误码
 * 从400开始
 */
public interface UserErrorCode {
    ErrorCode USER_NOT_EXISTS = new ErrorCode(400, "用户不存在");

    ErrorCode PASSWORD_ERROR = new ErrorCode(401, "密码错误");

    ErrorCode USER_ALREADY_EXISTS = new ErrorCode(402, "用户名已存在");

    ErrorCode ID_NUM_ALREADY_EXISTS = new ErrorCode(403, "身份证号已被注册");

    ErrorCode REGISTER_FAILED = new ErrorCode(404, "注册失败，请稍后重试");

    ErrorCode INVALID_PARAMETER = new ErrorCode(405, "参数不合法");

    ErrorCode PASSWORD_NOT_MATCH = new ErrorCode(406, "两次输入的密码不一致");
}
